<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>my code</title>
  </head>
  <body>
    <script>
      // ... javascript statements are written here ...
    </script>
    <script src="mycdoe.js"></script>
    <script src="/path/to/mycode.js"></script>
    <script src="http://www.example.com/path/to/mycode.js"></script>
    <script>
      // 注释
      /*
       * 多行注释
       *
       * */
      // ---------------------------------------------------
      const netPrice = 8.99;
      const productName = 'Leather wallet';
      alert(productName);

      // ---------------------------------------------------
      const theSum = 4 + 3;
      const productCount = 2;
      const subtotal = 14.98;
      const shipping = 2.75;
      const total = subtotal + shipping;

      subtotal = total - shipping;
      const salesTax = total * 015;
      const productPrice = subtotal / productCount;

      const itemsPerBox = 12;
      const itemsToBeBoxed = 40;
      const itemsInLastBox = itemsToBeBoxed % itemsPerBox;

      productCount++;
      productCount = productCount + 1;

      const items = 0;
      items--;
      items = items - 1;

      total = total + 5;
      total += 5;

      const counter = 10;
      const step = 5;
      counter = counter - step;

      const price = 2.1;
      const uplift = 1.2;
      price = price * uplift;
      price *= uplift;

      // ---------------------------------------------------
      const a = 1,
        b = 2,
        c = 3;
      const average = a + b + c / 3;
      average(a + b + c) / 3;

      // ---------------------------------------------------
      const firstname = 'John';
      const surname = 'Doe';
      const fullname = firstname + ' ' + surname;

      const name = 'David';
      const age = 45;
      alert(name + age);
    </script>
  </body>
</html>
